//课后习题分段函数
#include <stdio.h>

int f(int x)
{
    int y = 0;
    if(x < 0){
        y = 1;
    }else if(x == 0){
        y = 0;
    }else {
        y = -1;
    }
    return y;
}

int main()
{
    int x = 0;
    scanf("%d",&x);
    printf("%d",f(x));
    
    return 0;
}